﻿@model Sysgeprava.Entities.RESPONSABLE

@{
    ViewBag.Title = "EDITAR";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<link href="@Url.Content("~/Content/desing.css")" rel="stylesheet" />

@{
    var message = TempData["AlertMessage"] ?? string.Empty;
}

<script type="text/javascript">
    var message = '@message';
    if (message) {
        alert(message).alert;
    }
</script>

<div class="float-center" id="panel_titulo">
   <img src="~/Images/titulos/mttoResponsable.png" alt="mttoResponsable" height="70" width="400"/>
</div>


<h2></h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>RESPONSABLE</legend>

        <div id="general" style="width:330px;">
            @Html.HiddenFor(model => model.Id)

            <b>Nombre: </b>
            <div class="editor-field">
                @Html.EditorFor(model => model.Nombre)
                @Html.ValidationMessageFor(model => model.Nombre)
            </div>

            <b>Teléfono: </b>
            <div class="editor-field">
                @Html.EditorFor(model => model.Telefono)
                @Html.ValidationMessageFor(model => model.Telefono)
            </div>
        </div>

        <p>
            <button type="submit" name="btnGuardar" value="Edit"><img src="~/Images/botones/save.png"></button>
            <button onclick="location.href='@Url.Action("Index")';return false;" ><img src="~/Images/botones/return.png"></button>
        </p>
    </fieldset>
}

@*<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
